<?php
namespace BaseExt;
use BaseExt\AliSMS\SmsDemo;
use Symfony\Component\HttpFoundation\Request;


class Sms {

    private $key = 'LTAI7rhhoIlxuh0U';
    private $sec = 'l4ZJmXGbPbVBzuxLbzzqmaAUocswSX';

    public function sendSms($phone,$tplCode,$data)
    {
        $Api = new SmsDemo($this->key,$this->sec);
        $Api->sendSms("益人人",$tplCode,$phone,$data);
    }
}
